package com.itsu.dao;

import com.itsu.domain.Module;
import com.itsu.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    int save(User user);

    int delete(User user);

    int update(User user);

    User findById(String id);

    List<User> findAll();

    User findByEmail(String email);

    void deleteRoleUserByUserId(String userId);

    void addRoleUser(@Param("userId") String userId,@Param("roleId") String roleId);

    List<Module> findModulesById(String userId);
}

